package com.yanqu.road.entity.activity.langyabang.data;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.Map;
import java.util.Set;
@FieldTypeAnnotation(tableName = "t_c_lang_ya_union_data")
public class LangYaUnionData extends DataObject {
    @FieldTypeAnnotation(desc = "活动id",select = true,update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "分组id",select = true,update = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "商会id",update = true)
    private String unionUid;
    @FieldTypeAnnotation(desc = "商会内玩家")
    private Set<Long> userIdSet;
    @FieldTypeAnnotation(desc = "商会积分")
    private long scoreNow;
    @FieldTypeAnnotation(desc = "被其他商会打的仇恨值")
    private Map<String,Integer> hateValueMap;

    public int getActivityId() {
        return activityId;
    }
    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public int getGroupId() {
        return groupId;
    }
    public void setGroupId(int groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public String getUnionUid() {
        return unionUid;
    }
    public void setUnionUid(String unionUid) {
        if (unionUid == null){
            return;
        }
        if (this.unionUid == null || !this.unionUid.equals(unionUid)) {
            this.unionUid = unionUid;
            setOp(DataStatus.Update);
        }
    }

    public Set<Long> getUserIdSet() {
        return userIdSet;
    }
    public void setUserIdSet(Set<Long> userIdSet) {
        if (null == userIdSet){
            return;
        }
        if (this.userIdSet == null || !this.userIdSet.equals(userIdSet)) {
            this.userIdSet = userIdSet;
            setOp(DataStatus.Update);
        }
    }

    public long getScoreNow() {
        return scoreNow;
    }
    public void setScoreNow(long scoreNow) {
        if (this.scoreNow != scoreNow) {
            this.scoreNow = scoreNow;
            setOp(DataStatus.Update);
        }
    }

    public java.util.Map<java.lang.String, java.lang.Integer> getHateValueMap() {
        return hateValueMap;
    }
    public void setHateValueMap(java.util.Map<java.lang.String, java.lang.Integer> hateValueMap) {
        if (null == hateValueMap){
            return;
        }
        if (this.hateValueMap == null || !this.hateValueMap.equals(hateValueMap)) {
            this.hateValueMap = hateValueMap;
            setOp(DataStatus.Update);
        }
    }
}
